<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script>
const obj1 = {
    a: 1,
    b: 2,
};
const proxy1 = new Proxy(obj1, {
    get (target, propKey) {
        console.log(target);
        return target[propKey];
    },
    set (target, propKey, value) {
        target[propKey] = value;
    }
});
proxy1.a = 222;

console.log(proxy1.a);
console.log(proxy1);
console.log(obj1);
</script>
</body>
</html>